<?php
	
	if(!isset($_POST['request']) || empty($_POST['request']))
	{
		$html = '
		<p>输入用户名进行查找</p>
		';
		
	}
	else
	{
		$sth = $_POST['request'];

		$sth = $this->db->escape($sth);
	
		$o = $this->db->fetch('SELECT * FROM Users WHERE username="'.$sth.'"');
		if($o === FALSE)
		{
			$html = '
			<p>用户 '. $sth .' 不存在</p>
			';
		}
		else
		{
			$html = '
			<a href="'. SITEURL. 'profile/'. $o->username .'">' . $o->username . '</a>
			<br/><p>'. $o->about_me .'</p>
			';
		}
	}
?>